<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Canvas</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
        }
        body{
            height: 100vh;
            width: 100vw;
            position: relative;
        }
        #container
        {
            position: absolute;
            height: 50%;
            width: 50%;
            left: 50%;
            top: 50%;
            transform:translate(-50%,-50%);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        ul{
            list-style: none;
        }
        ul li{
            display: flex;
            justify-content: center;
            align-items: center;
            float: left;
            width: 120px;
            height: 42px;
            background: #30336b;
            box-shadow: 2px 2px 5px #30336b;
            line-height: 42px;
            text-align: center;
            border-radius: 4px;
            margin: 5px;
            transition: box-shadow .8s;
        }
        ul li:hover{
            cursor: pointer;
            box-shadow:4px 4px 15px #30336b;
        }
        ul li>a{
            text-decoration: none;
            color: #f2f2f2;
            
        }
        ul::after{
            clear: both;
        }
    </style>
</head>
<body>
    <div id="container">
        <div>
            <ul id="lstHtml">
            
            </ul>
        </div>
    </div>

    <script>
        let arr = []
        arr.push({name:'入门',url:'入门.html'});
        arr.push({name:'渐变线条',url:'渐变线条.html'});
        arr.push({name:'矩形正方形',url:'矩形正方形.html'});
        arr.push({name:'矩形框',url:'矩形框.html'});
        arr.push({name:'渐变矩形',url:'渐变矩形.html'});
        arr.push({name:'圆形填充',url:'圆形填充.html'});
        arr.push({name:'圆心渐变',url:'圆心渐变.html'});
        arr.push({name:'旋转平移',url:'旋转平移.html'});
        arr.push({name:'时钟',url:'时钟.html'});
        arr.push({name:'边框旋转动画',url:'边框旋转动画.html'});
        arr.push({name:'加载动画',url:'加载动画.html'});
        let lstUl = document.getElementById('lstHtml');
        arr.forEach((item,index)=>{
            const li = document.createElement('li');
            const a1 = document.createElement('a');
            a1.innerText = item.name;
            a1.href = item.url;
            li.appendChild(a1);
            lstUl.appendChild(li);
        })
    </script>
</body>

</html>